package myJava.Web;

import java.io.Serializable;
import java.util.ArrayList;

public class SavaWebInfoArray implements Serializable {
	private static final long serialVersionUID = 1208653872335856234L;
	//存放信息的数组
	public static ArrayList<WebInfo> arrayList = new ArrayList<WebInfo>();
	
	public static boolean isWebInfo(String day) {
		for (WebInfo webInfo : arrayList) {
    		if (webInfo.getDay().equals(day)) return true;
    	}
		return false;
	}
	
	public static void printWebInfo() {
		for (WebInfo webInfo : arrayList) {
    		webInfo.printAll();
    	}
	}
	
	public static WebInfo getWebInfo(String day) {
		for (WebInfo webInfo : arrayList) {
			if (webInfo.getDay().equals(day)) return webInfo;
    	}
		return null;
	}
	
}
